public class IntetermediateLeadConvertController {
	private Id leadId;
    /*public IntetermediateLeadConvertController(ApexPages.StandardController controller) {
		leadId = ((Lead)controller.getRecord()).Id;
    }*/
	
	public PageReference convertLead(){
		leadId = ApexPages.currentPage().getParameters().get('lid');
		PageReference convterPage = new PageReference('/lead/leadconvert.jsp?retURL=%2F'+leadId+'&id='+leadId);
		//PageReference convterPage = new PageReference('/'+leadId);
		convterPage.setRedirect(true);
		LeadConvertFlag.LeadFlag = true;
		System.debug('******'+convterPage);
		return convterPage;
	}
}